<template>
  <div id="app">
    <div>
      <!-- <navtion></navtion> -->
      <tabber v-if="showBar"></tabber>
      </div>
    <router-view />
  </div>
</template>

<script>

import tabber from "./compon/tabber";
import navtion from "./compon/navtion"
export default {
  name: "App",
  components: {
    tabber,
    navtion,
  },
  computed:{
    showBar:function(){
      return this.$store.state.showTab
    }
  },

  watch:{
    // 路由监听
    "$route":function(newV){
      console.log("监听路由");
      console.log(newV);
       this.$store.commit("changeShowTab",newV.meta.deep == 1 ? true: false);
    }
  }
  
};
</script>

<style>
* {
  padding: 0;
  margin: 0;
}
</style>
